package com.ssy.lingxi.logistics.repository;

import com.ssy.lingxi.logistics.entity.LogisticsOrderLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 物流单历史流转记录实体仓库
 * @author yzc
 * @version 2.0.0
 * @date 2020/7/21
 */
public interface LogisticsOrderLogRepository extends JpaRepository<LogisticsOrderLog, Long> {

    Page<LogisticsOrderLog> findAllByOrderId(Long orderId, Pageable pageable);

    List<LogisticsOrderLog> findAllByOrderId(Long orderId, Sort sort);

    List<LogisticsOrderLog> findAllByOrderId(Long orderId);
}